package cn.gzlsdl.glassesmanage.common.util;


import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * Class BaseController
 * Description:控制器的基类，通过继承可代码复用，包含日志输出，获取用户，获取用户id，获取部门id
 * @author luxiaobo
 * Created on 2019/5/17
 */
public class BaseController {

    protected Logger log= LoggerFactory.getLogger(getClass());

//    protected User getUser(){return (User) SecurityUtils.getSubject().getPrincipal();
//    }
//
//    protected Long getUserId(){
//        return getUser().getId();
//    }
//
//    protected Long getDeptId(){
//        return getUser().getDeptId();
//    }

}
